<html>
    <head>
        <title>Functions</title>
        <script language="JavaScript" type = "text/javascript">

        </script>
    </head>
    <body>
        <p>The following is the result of the function call.</p>
        <form name = "theform">
        <script language = "JavaScript" type = "text/javascript" >
        function Average(a,b,c,d) {
            result = (a + b + c + d) / 4
            return result 
        }
        score = Average(3,8,5,7)
        document.write("The average is:" + score + "<br>")
        test = "this is a test."
        document.write(test.length)
        </script>

    </body>

</html>